package com.ls.pattern.behavior.chain_responsibility;

//副校长
public class ViceSchoolMasterApprover extends Approver {
    public ViceSchoolMasterApprover(String name) {
        super(name);
    }

    @Override
    public void processRequest(PurchaseRequest request) {
        if (request.getPrice() <= 30000 && request.getPrice() > 10000) {
            System.out.println("副校长处理");
        } else {
            nextApprover.processRequest(request);
        }
    }
}
